From 8589a3bc97190c3d3bbb7246ea517e7855abfeed Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 22 Jul 2025 10:03:40 +0300 Subject: cleanup and styling --- src/pages/[...blog]/[category]/[...page].astro | 37 -------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/pages/[...blog]/[category]/[...page].astro (limited to 'src/pages/[...blog]/[category]') diff --git a/src/pages/[...blog]/[category]/[...page].astro b/src/pages/[...blog]/[category]/[...page].astro deleted file mode 100644 index e1c4ff6..0000000 --- a/src/pages/[...blog]/[category]/[...page].astro +++ /dev/null @@ -1,37 +0,0 @@ ---- -import type { InferGetStaticPropsType, GetStaticPaths } from 'astro'; -import { blogCategoryRobots, getStaticPathsBlogCategory } from '~/utils/blog'; - -import Layout from '~/layouts/PageLayout.astro'; -import BlogList from '~/components/blog/List.astro'; -import Headline from '~/components/blog/Headline.astro'; -import Pagination from '~/components/blog/Pagination.astro'; - -export const prerender = true; - -export const getStaticPaths = (async ({ paginate }) => { - return await getStaticPathsBlogCategory({ paginate }); -}) satisfies GetStaticPaths; - -type Props = InferGetStaticPropsType & { category: Record }; - -const { page, category } = Astro.props as Props; - -const currentPage = page.currentPage ?? 1; - -const metadata = { - title: `Category '${category.title}' ${currentPage > 1 ? ` — Page ${currentPage}` : ''}`, - robots: { - index: blogCategoryRobots?.index, - follow: blogCategoryRobots?.follow, - }, -}; ---- - - -
- {category.title} - - -
-
-- cgit v1.2.3